FailuresAccessor.IsElementsDeletionPermitted
Description:
Checks if resolution of the failures by deleting given collection of elements is permitted.
Checks if resolution of the failures by deleting given collection of elements is permitted.
Remarks:
Method does not confirm if deletion of the elements will or may resolve the failure - it simply verifies that given elements can be deleted in the current state of the document.
Method does not confirm if deletion of the elements will or may resolve the failure - it simply verifies that given elements can be deleted in the current state of the document.
Overloads (3):
IsElementsDeletionPermitted(IList[ElementId],String)
public bool IsElementsDeletionPermitted(
IList<ElementId> idsToDelete,
out string reason
)
-
IList<ElementId>idsToDeleteThe Ids of elements to be deleted.
-
String%reasonA localized string explaining reason why the elements cannot be deleted.
Return Value
bool
True if resolution of the failures by deleting given elements is permitted
-
A non-optional argument was NULL
-
This FailuresAccessor is inactive (is used outside of failures processing).